package demo.web.ui.ctrl;

import org.zkoss.zk.ui.event.Event;

/**
 * @author   virgil
 */
public class ShoppingEvent extends Event {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6082843618140247037L;

	public ShoppingEvent(Type type) {
		super("onShopping");
		eventType = type;
	}
	
	/**
	 * @author   virgil
	 */
	public enum Type {
		/**
		 * @uml.property  name="cREATEORDER"
		 * @uml.associationEnd  
		 */
		CREATEORDER, /**
		 * @uml.property  name="aDDTOCART"
		 * @uml.associationEnd  
		 */
		ADDTOCART
	}
	
	/**
	 * @uml.property  name="eventType"
	 * @uml.associationEnd  
	 */
	private Type eventType;

	public Type getType() {
		return eventType;
	}
}